package com.eric.ipc.aidl;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;

public class MyService extends Service {
	private Binder mBinder = null;
	@Override
	public IBinder onBind(Intent arg0) {
		Log.e("XXX", "onBind");
		return mBinder;
	}

	@Override
	public void onCreate() {
		super.onCreate();
		mBinder = new MyBinder(this);
		Log.e("XXX", "onCreate");
	}

	@Override
	public void onDestroy() {
		super.onDestroy();
		Log.e("XXX", "onDestroy");
	}

	@Override
	public boolean onUnbind(Intent intent) {
		Log.e("XXX", "onUnbind");
		return super.onUnbind(intent);
	}

	@Override
	public void onRebind(Intent intent) {
		super.onRebind(intent);
		Log.e("XXX", "onRebind");
	}

	@Override
	public void onStart(Intent intent, int startId) {
		super.onStart(intent, startId);
		Log.e("XXX", "onStart");
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		Log.e("XXX", "onStartCommand");
		return super.onStartCommand(intent, flags, startId);
	}
}
